<style>
	th {
		text-align: center;
	}
	
	.table>tbody>tr>td {
		line-height: 60px;
		text-align: center;
		height: 50px;
		margin: 0px;
	}
</style>
<div id="data_page" class="in_page">
	
		<div class="panel panel-default">
			<div class="panel-body">
				<form class="form-inline" method="get" id="keyword">
					<div class="form-group">
						<input type="text" class="form-control" name="keyword" placeholder="标题">
					</div>
					<button type="submit" class="btn btn-sm btn-default">搜索</button>
					<div class="form-group" style="float: right;">
						<button type="button" class="btn btn-sm btn-primary link" link="{:U('add')}">添加直播</button>
					</div>
				</form>
			</div>
		</div>
		
	<table class="table table-striped table-bordered table-condensed  ">
		<thead>
			<tr>
				<th>图片</th>
				<th>标题</th>
				<th>人数</th>
				<th>直播地址</th>
				<th>排序</th>
				<th>状态</th>
				<th>是否显示</th>
				<th>操作</th>

			</tr>
		</thead>
		<tbody>
			<volist name="list" id="li">
				<tr>
					<td><img src="{$li.cover}"  width="50px" height="50px"/></td>
					<td >{$li.title}</td>
					<td>{$li.number}</td>
					<td>{$li.url}</td>
					<td>{$li.sort}</td>
					<td>{$li.status}</td>
					<td>{$li.is_show}</td>
					<td width="250px">
						<button type="button" class="btn btn-sm btn-success link" link="{:U('edit')}?id={$li.id}">修改</button>
						<button type="button" class="btn btn-sm btn-danger link delete" link="{:U('delete')}?id={$li.id}">删除</button>
					</td>
				</tr>
			</volist>
		</tbody>
	</table>
	<script type="text/javascript">
		$(function(){
			$(".delete").on('click', function(){
				if(confirm('确认删除')){
					location.href = $(this).attr('link');
				}
				return false;					
			});
		})
	</script>
</div>
<div>{$page}</div>
